<?php defined('IN_IA') or exit('Access Denied');?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<script type="text/javascript" src="<?php echo RES;?>js/jQuery.js"></script>
<script type="text/javascript" src="<?php echo RES;?>js/wei_webapp_v2_common.js"></script>
<title><?php  echo $set['shop_name'];?></title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="format-detection" content="telephone=no" />
<link type="text/css" rel="stylesheet" href="<?php echo RESNEW;?>css/style.css" />
<link rel="stylesheet" type="text/css" href="<?php echo RES;?>css/wei_canyin.css" media="all" />
<link rel="stylesheet" type="text/css" href="<?php echo RES;?>css/wei_dialog.css" media="all" />

</head>
<body id="page_allMenu">
<?php  include $this->template(common_search, TEMPLATE_INCLUDEPATH);?>    
<div class="center" style="margin-top: 40px;">
    <section id="infoSection" style="float:none;width:100%;">
        <article>
                <div id="pInfo">
					<?php  if(is_array($list)) { foreach($list as $row) { ?>
                        <a href="mobile.php?act=module&name=shopping3&do=wlarcleddetail&id=<?php  echo $row['id'];?>&weid=1" class="dataIn" onclick="event.stopPropagation();">
                        <dl> 
					       <dt><h3><?php  echo $row['title'];?></h3></dt>                    
                        <dd>
                           
                            <img src="<?php  echo $row['thumb'];?>" alt="" title="" />
                           
                        </dd>
				
                        </dl>
                        </a>
						<?php  } } ?> 
            </div>
        </article>
    </section>
 <?php  include $this->template(wl_footer, TEMPLATE_INCLUDEPATH);?> 
</div>
    <script type="text/javascript">
        window.selected = {
            total:0,
            dishes:{}
        };
        var cardid = '3414907165';
        var view_const_dish_SPECIAL_PRICE_YES = '2';
        var view_const_dish_HOT_YES = '2';

        function setHeight(){
            var  cHeight;
            cHeight = document.documentElement.clientHeight;
            cHeight = cHeight +"px"
            document.getElementById("navBar").style.height =  cHeight;
            document.getElementById("infoSection").style.height =  cHeight;
        }


  
       
        //
        function addToMenu(){
           /* var params = '[';
            for(var key in window.selected.dishes){
                params += '{"dishes_id":'+ key + ",",
                params += '"price":'+ window.selected.dishes[key].price + ",",
                params += '"nums":'+ window.selected.dishes[key].num + "},"
            }
            params = params.replace(/,$/, "");
            params += ']';

            $.ajax({
                'url':'<?php  echo  $this->createMobileUrl('wladdorder')?>',
                'data':{'order':params},
                'type':'POST',
                'async':'false',
                'success':function(db){
                    location.href='<?php  echo  $this->createMobileUrl('wlcart')?>';
                }
            });*/
			location.href='<?php  echo  $this->createMobileUrl('wlcart')?>';
        }


        window.addEventListener("DOMContentLoaded", function(){
            //getAllList();
            setHeight();
        }, false);
        window.onresize = function(){setHeight();}
        
    </script>

<script>
    $(document).ready(function(){
        $('#my_menu').click(function(){
            addToMenu();

	    });
        
    });

</script>
 
</html>
